<ion-header-bar class="bar-top text-center">
    <div class="buttons">
        <nav-button class="back" ng-click="back()"></nav-button>
    </div>
    <h1 class="title">体检鉴定详情</h1>
</ion-header-bar>
<ion-view>
    <ion-content class="check add-check form" has-bouncing="false">
        <p class="tit row">患者填写：</p>
        <div class="f-block">
            <div class="row ipt">
                <div class="col col-33 txt">体检项目</div>
                <div class="col col-67">
                    <input disabled ng-model="vm.model.apprItem" type="text" ></div>
            </div>
            <div class="row ipt">
                <div class="col col-33 txt">科室</div>
                <div class="col col-67">
                    <span>{{vm.model.branchName}}</span> <i class="r-arrow"></i>
                </div>
            </div>
            <div class="row ipt">
                <div class="col col-33 txt">医生姓名</div>
                <div class="col col-67">
                    <span>{{vm.model.doctorName}}</span> <i class="r-arrow"></i>
                </div>
            </div>
            <div class="row ipt">
                <div class="col col-33 txt">鉴定费用</div>
                <div class="col col-67">
                    <input disabled type="text" value="{{vm.model.apprCost}}" placeholder="请填写鉴定费用"></div>
            </div>
            <div class="row">
                <div class="col report">
                    <p class="r-tit">检查报告</p>
                    <div class="up-list  row">
                        <div class="col">
                            <i class="arrow left"></i>
                        </div>
                        <div class="col col-90">
                            <ion-scroll direction="x">
                                <ul class="ul-imgs" ng-style="{'width':vm.imgWidth+'px'}">
                                    <li ng-repeat="img in vm.model.appraisalPictures track by $index">
                                        <img ng-src="{{downloadImg(img)}}" alt="" ng-click="showImages($index)"></li>
                                </ul>
                            </ion-scroll>
                            <image-purview data='vm.ipData'></image-purview>
                        </div>
                        <div class="col">
                            <i class="arrow right"></i>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="f-block">
            <div class="row">
                <div class="col">
                    <p class="name">给医生留言</p>
                    <textarea disabled class="txt-area" ng-model="vm.model.content" name="" id="" placeholder="给医生留言"></textarea>
                </div>
            </div>
        </div>
        <p class="tit row">医生填写：</p>
        <div class="f-block">
            <div class="row">
                <div class="col">
                    <p class="name">鉴定结果</p>
                    <textarea ng-disabled="vm.model.apprState>0" class="txt-area" name="" ng-model="vm.model.apprResult" id="" placeholder="请填写鉴定结果">
                    </textarea>
                </div>
            </div>
        </div>
        <div class="row btn" ng-show="vm.model.apprState==0">
            <button ng-click="vm.submit()" class="col button button-small">提交</button>
        </div>
        <div class="row btn" ng-show="vm.model.apprState==0" ng-click="vm.notidentify()">
            <button class="col button button-small gray">无法鉴定</button>
        </div>
    </ion-content>
</ion-view>